<template>
  <div class="page-wrapper d-flex flex-column align-items-center">
    <JoinApplicationPhaseStepper />
    <div class="application-submitted-tip">
      <font-awesome-icon
        icon="check-circle"
        :style="{ color: '#54c50d' }"
        size="4x"
      />
      <p class="application-submitted-tip-main">申请提交成功<br />正在审核中</p>
      <p class="application-submitted-tip-sub">预计4哥工作日内审核完毕</p>
    </div>
    <div>
      <b-button variant="link" @click="gotoHistoryQuery">
        查看历史审核意见
      </b-button>
      <b-button variant="link" @click="gotoHelp">入驻帮助</b-button>
    </div>
    <b-button
      class="btn-submmit"
      variant="outlinesecondary"
      pill
      to="/joinPlatform"
    >
      完成
    </b-button>
  </div>
</template>

<script>
import JoinApplicationPhaseStepper from '@/components/m/JoinApplicationPhaseStepper';

export default {
  components: {
    JoinApplicationPhaseStepper,
  },
  layout: 'staticBanner',
  head() {
    return {
      title: '等待审核资料提交',
    };
  },
  methods: {
    gotoHistoryQuery() {
      this.$router.replace('/application/query');
    },
    gotoHelp() {
      this.$router.push('/application/depositDescription');
    },
  },
};
</script>

<style lang="scss" scoped>
$width-ratio: 80%;
$max-width: 420px;

.page-wrapper {
  height: 100%;
  padding-bottom: 26px;
  background: #f3f3f3;
  @include media-breakpoint-up(sm) {
    padding-top: $main-nav-bar-height;
  }
}
.application-submitted-tip {
  padding-top: 30px;
  padding-bottom: 47px;
  background-color: #d8d8d8;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  border-radius: 5px;
  margin: 30px 24px 50px;
  width: $width-ratio;
  max-width: $max-width;
}
.application-submitted-tip-main {
  font-family: PingFangSC-Semibold;
  font-size: 20px;
  color: #4a4a4a;
  line-height: 28px;
  letter-spacing: 0.42px;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 30px;
}
.application-submitted-tip-sub {
  font-family: PingFangSC-Semibold;
  font-size: 12px;
  color: #9b9b9b;
  line-height: 17px;
  letter-spacing: 0.89px;
}
.btn-submmit.btn {
  width: $width-ratio;
  max-width: $max-width;
  padding-top: 0px;
  padding-bottom: 0px;
  line-height: 48px;
  font-size: 14px;
  color: #4a4a4a;
  letter-spacing: 0.5px;
  background: #fff;
  box-shadow: 0 1px 8px -2px rgba(0, 0, 0, 0.5);
  margin-top: 30px;
  margin-bottom: 20px;
}
</style>
